<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="查看理财经理待收">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module search">
                                <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/crm/performanceIndex.html'">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <div class="valBox w750 h300">
                                <div class="top">
                                    <strong>理财经理待收</strong>
                                </div>
                                <div class="val clearfix">
                                    <ul>
                                        <li>
                                            <div class="v" style="float:left; margin-top: 15px; margin-left:22px;">
                                                理财经理：
                                                <select id="fmId" name="fmId" style="min-width:124px; color:#000; height:26px;" class="search-value">
                                                    <#if fdList??>
                                                        <#list fdList as item>
                                                            <#if item??>
                                                                <option value="${item.userId}" >${item.realname!''}</option>
                                                            </#if>
                                                        </#list>
                                                    </#if>
                                                </select>
                                            </div>
                                        </li>
                                        <li>
                                            <div class="title">年份：</div>
                                            <div class="v">
                                                <input id="year" type="text"  style="width:50px;"></input>
                                            </div>
                                        </li>

                                        <li>
                                            <div class="title">月份：</div>
                                            <div class="v">
                                                <input id="month" type="text"  style="width:50px;"/>
                                            </div>
                                        </li>

                                        <li>
                                            <div class="title">待收总额：</div>
                                            <div class="v">
                                                <input id="collection" type="text"  style="width:150px;" value="" readonly="readonly"/>
                                            </div>
                                        </li>
                                    </ul>
                                    <div class="other">
                                        <input type="button" id="search" value="搜索" class="input-button confirm"/>
                                    </div>
                                </div>
                            </div>

                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
        <script>
            $("#search").click(function(){
                if($("#year").val()==''||$("#month").val()==''){
                    alert('年份和月份不能为空！');
                }else{
                    $.ajax({
                        type:"post",
                        url:"/admin/crm/ajaxCalculateCollection.html",
                        async:false,
                        dataType:"json",
                        data:{
                            "fmId":$("#fmId").val(),
                            "year":$("#year").val(),
                            "month":$("#month").val()
                        },
                        success:function(arr){
                            if(arr.resultCode== 1){
                                $("#collection").val(arr.resultData.sum);
                            }else{
                                alert(arr.resultMsg);
                            }
                        }
                    });
                }
            });
        </script>

    </body>
</html>
